x = 0
while x < 3:
    pwb = input('请输入密码：')
    if pwb == '123456':
        print('密码正确！')
        break
    else:
        print('密码不正确！请重新输入')
        x += 1
else:
    print('三次错误，已锁死')
